﻿package cn.poco.pepsi.service;

import java.util.List;

import cn.poco.pepsi.bean.Guest;
import cn.poco.pepsi.bean.Restaurant;

/**
 * 同城食客接口
 * @author tanglx
 *
 */
public interface IGuest {
	
	public static final String PATH1="http://img-m.poco.cn/mypoco/mtmpfile/MobileAPI/FoodSearch/user_nearby.php";
	public static final String PATH2="http://img-m.poco.cn/mypoco/mtmpfile/MobileAPI/FoodSearch/user_hot_comment.php";
	public static final String PATH3="http://img-m.poco.cn/mypoco/mtmpfile/MobileAPI/FoodSearch/user_following_grade.php";
	public static final String ResCommByResID="http://img-m.poco.cn/mypoco/mtmpfile/MobileAPI/FoodSearch/res_comment_list.php";
	public static final String ResDetailsByResID="http://img-m.poco.cn/mypoco/mtmpfile/MobileAPI/FoodSearch/res_info.php";
	
	
	/**
	 * 附近食客
	 * @param cd
	 * @param lat
	 * @param lon
	 * @param range
	 * @param s
	 * @param l
	 * @return Guest
	 * @throws Exception
	 */
	public List<Guest> getNearGuests(String cd,String lat,String lon,String range,int s,int l)throws Exception;
	
	/**
	 * 热门食客
	 * @param cd
	 * @param cycle
	 * @param l
	 * @param s
	 * @return
	 * @throws Exception
	 */
	public 	List<Guest> gethotGuests(String cd, String cycle, int l, int s) throws Exception;
	
	/**
	 * 关注食客
	 * @param userId
	 * @param l
	 * @param s
	 * @return
	 * @throws Exception
	 */
	public List<Guest> getmyGuests(String userId, int l, int s) throws Exception;
	
	public List<Guest> getResCommByResID(String resId, int l, int s) throws Exception;
	
	public Restaurant getResDetailsByResID(String resId) throws Exception;
	
	
}
